﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DTO
{
    public class MaDTO
    {
        private List<int> _maDiaDiems;

        public List<int> MaDiaDiems
        {
            get { return _maDiaDiems; }
            set { _maDiaDiems = value; }
        }

        private int _maDichVu;
        
        public int MaDichVu
        {
            get { return _maDichVu; }
            set { _maDichVu = value; }
        }

        private List<int> _maQuans;

        public List<int> MaQuans
        {
            get { return _maQuans; }
            set { _maQuans = value; }
        }

        private List<int> _maDuongs;

        public List<int> MaDuongs
        {
            get { return _maDuongs; }
            set { _maDuongs = value; }
        }

        private List<int> _maPhuongs;

        public List<int> MaPhuongs
        {
            get { return _maPhuongs; }
            set { _maPhuongs = value; }
        }

        private List<int> _maTTs; // ma thanh pho

        public List<int> MaTTs
        {
            get { return _maTTs; }
            set { _maTTs = value; }
        }

        public void Add(string att, int value)
        {
            switch (att)
            {
                case "MaDiaDiem":_maDiaDiems.Add(value); break;
                case "MaDuong": _maDuongs.Add(value); break;
                case "MaPhuong": _maPhuongs.Add(value); break;
                case "MaQuan": _maQuans.Add(value); break;
                case "MaTT": _maTTs.Add(value); break;
            }
        }

        public MaDTO()
        {
            _maDiaDiems = new List<int>();
            _maDuongs = new List<int>();
            _maPhuongs = new List<int>();
            _maQuans = new List<int>();
            _maTTs = new List<int>();
        }
    }
}
